<?php
namespace app\common\model;

class SystemLog extends Base
{
    protected $autoWriteTimestamp = true;
    /**
     * 记录系统日志
     */
    public function writeSystemLog($data)
    {
        $this->allowField(true)->isUpdate(false)->data($data, true)->save($data);
    }
}